﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookManege.entity
{
    internal class Book
    {
        long id;
        string bookName;
        string imgUrl;
        string aurher;
        string icbn;
        Double price;
        int state;
        int number;
        DateTime joinDate;

        public Book(long id, string bookName,string imgUrl, string aurher, string icbn, Double price, int state, int number, DateTime joinDate)
        {
            this.id = id;
            this.bookName = bookName;
            this.aurher = aurher;
            this.icbn = icbn;
            this.price = price;
            this.state = state;
            this.number = number;
            this.joinDate = joinDate;
            this.imgUrl = imgUrl;
        }
        public Book()
        {

        }
        public long Id { get => id; set => id = value; }
        public string BookName { get => bookName; set => bookName = value; }
        public string Aurher { get => aurher; set => aurher = value; }
        public string Icbn { get => icbn; set => icbn = value; }
        public Double Price { get => price; set => price = value; }
        public int State { get => state; set => state = value; }
        public int Number { get => number; set => number = value; }
        public DateTime JoinDate { get => joinDate; set => joinDate = value; }
        public string ImgUrl {  get => imgUrl; set => imgUrl = value; }
    }
}
